package com.itheima.integer;

public class IntegerDemo {
    public static void main(String[] args) {
        System.out.println(Integer.MIN_VALUE);
        System.out.println(Integer.MAX_VALUE);

        Integer i1 = Integer.valueOf(100);
        Integer i2 = Integer.valueOf("100");
        System.out.println(i1 + "..." + i2);

        Integer i = 100;
        int i3 = i;
        System.out.println(i);

        Integer i4 = 100;
        i4 += 200;
        System.out.println(i4);

        // 细节：
        Integer i5 = null;
        if (i5 != null) {
            i5 += 200;
        }
        System.out.println(i5);

        int iInt = Integer.parseInt("100");
        int i6 = 200;
        System.out.println(iInt + i6);

        // int 转换为 字符串
        int i7 = 100;
        String s2 = i7 + "";
        System.out.println(s2 + 100);

        String s3 = String.valueOf(i7);
        System.out.println(s3 + 100);
    }
}
